//--------------------------------------------------- // Purpose: This program converts temperatures from // celsius to fahrenheit // Author: John Gauch //--------------------------------------------------- #include using namespace std; int main() { // read celsius value float C = 0; cout << "Enter C value: "; cin >> C; // calculate fahrenheit value float F = C * 1.8 + 32; // output result cout << "F = " << F << endl; return 0; }